Skip to content

feat: add configurable right sidebar - #2772

Merged
sy-records merged 1 commit into
docsifyjs:developfrom
shivanshgupta365:feat/right-sidebar
Aug 4, 2026
Merged

feat: add configurable right sidebar#2772
sy-records merged 1 commit into
docsifyjs:developfrom
shivanshgupta365:feat/right-sidebar

Conversation

@shivanshgupta365

Copy link
Copy Markdown
Contributor

Summary

Adds a sidebarPosition configuration option so the default theme can render its sidebar on either side of the page.

  • keeps 'left' as the default, preserving existing behavior;
  • applies the right-side layout to the sidebar, toggle, content, and navbar;
  • handles the mobile overlay and toggle target from the right edge;
  • documents the new option;
  • adds desktop and mobile end-to-end coverage.

Related issue, if any:

Closes #1282

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Validation

  • npm ci / production build
  • npm run lint
  • npm run typecheck
  • npm run test:jest — 13 suites, 111 tests, 46 snapshots
  • npx playwright test test/e2e/configuration.test.js --grep sidebarPosition — 6 desktop/mobile cases

Tested in the following browsers:

  • Chrome (Playwright Chromium)
  • Firefox (Playwright Firefox)
  • Safari (Playwright WebKit)
  • Edge

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@shivanshgupta365 is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docsify-preview Ready Ready Preview Aug 4, 2026 3:39am

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks.

@sy-records
sy-records merged commit ee7063c into docsifyjs:develop Aug 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

option to put sidebar on the right

2 participants